//
//  Profit.m
//  Bus
//
//  Created by wangjiajia on 13-8-13.
//  Copyright (c) 2013年 wangjiajia. All rights reserved.
//

#import "Profit.h"

@implementation Profit

-(Profit *)initWithParameters:(int)idNo andIdesc:(NSString *)idesc andSumP:(NSString *)sump andSumY:(NSString *)sumy{
    Profit* p=[[Profit alloc] init];
    p.idNo=idNo;
    p.idesc=idesc;
    p.SumP=sump;
    p.SumY=sumy;
    return p;
}

-(NSString *)description{

    return [NSString stringWithFormat:@"%d,%@,%@,%@",self.idNo,self.idesc,self.SumP,self.SumY];
}
@end
